﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Task/Task.master" AutoEventWireup="true"
    StylesheetTheme="Content" CodeFile="BaseFileList.aspx.cs" Inherits="Task_BaseDoc_BaseFileList" %>

<%@ Register Src="../../UserContral/ListPageContral.ascx" TagName="ListPageContral"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ul class="topmenu">
        <li>年：<asp:DropDownList ID="dptYear" Width="80px" runat="server" AutoPostBack="True"
            OnSelectedIndexChanged="dptYear_SelectedIndexChanged">
        </asp:DropDownList>
        </li>
        <li>月：
            <asp:DropDownList ID="dptMonth" Width="80px" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dptMonth_SelectedIndexChanged">
            </asp:DropDownList>
        </li>
        <li>工作类型：<asp:DropDownList ID="dptJobType" Width="150" runat="server" AutoPostBack="True"
            OnSelectedIndexChanged="dptJobType_SelectedIndexChanged">
        </asp:DropDownList>
        </li>
        <li>
            <asp:DropDownList ID="dptFileType" Width="150px" runat="server" AutoPostBack="True"
                OnSelectedIndexChanged="dptFileType_SelectedIndexChanged">
            </asp:DropDownList>
        </li>
        <li>
            <asp:Label ID="Prompt" runat="server" ForeColor="Red"></asp:Label>
        </li>
    </ul>
    <asp:GridView ID="UserGrid" AutoGenerateColumns="False" runat="server" Caption="<span>档案列表</span>"
        DataKeyNames="ID" OnRowDataBound="UserGrid_RowDataBound">
        <Columns>
            <asp:TemplateField>
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="30px" />
                <ItemTemplate>
                    <asp:Label ID="ID" runat="server" ForeColor="#666666"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="档案名称">
                <ItemTemplate>
                    
                    <asp:HyperLink runat="server" ID="hplcaption"></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="创建时间" ItemStyle-Width="80">
                <ItemTemplate>
                    <%# ((DateTime)Eval("CreateDate")).ToString("yyyy-MM") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作" ItemStyle-Width="120">
                <ItemTemplate>
                    <a href='BaseDocEdit.aspx?ID=<%# Eval("ID") %>'>
                        <img alt="修改" src="../../Images/Edit.gif" /></a>
                    <asp:ImageButton runat="server" ToolTip="删除" OnClientClick="return confirm('确定要删除此附件吗？')"
                        ID="ibtnDelete" CommandArgument='<%# Eval("ID") %>' ImageUrl="~/Images/delete.gif"
                        OnCommand="ibtnDelete_Command" />
                </ItemTemplate>
                <ItemStyle Width="40px"></ItemStyle>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle HorizontalAlign="Left" />
    </asp:GridView>
    <uc1:ListPageContral ID="ListPageContral1" PageSize="15" OnPageSizeChange="ListPageContral1_PageSizeChange"
        runat="server" />
</asp:Content>
